package com.huawei;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Scanner;


//1.先把是单词的插入到字符数组，然后调用Collections.sort()排序，再然后遍历输入的字符串，如果是字符的话，就从排好序的列表放入一个，如果不是的就是空格了，插入原来的字符就好了0
public class HJ026 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String input = scanner.nextLine();

        ArrayList<Character> list = new ArrayList<>();

        //是单词的就放到列表
        for (int i = 0; i < input.length(); i++) {
            char c = input.charAt(i);
            if(Character.isLetter(c)){
                list.add(c);
            }
        }

        //排序
        Collections.sort(list, new Comparator<Character>() {
            @Override
            public int compare(Character o1, Character o2) {
                return Character.toLowerCase(o1) - Character.toLowerCase(o2);
            }
        });


        //组装整合
        int listIndex = 0;
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < input.length(); i++) {
            if(Character.isLetter(input.charAt(i))){
                sb.append(list.get(listIndex++));
            }else{
                sb.append(input.charAt(i));
            }
        }

        //打印输出答案
        System.out.print(sb);

    }
}
